package com.liujiaqi.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(2)
@Slf4j
@Component
//@Aspect
public class MyAspect2 {

  @Pointcut("execution(* com.liujiaqi.service.impl.DeptServiceImpl.*(..))")
  public void pt(){};

  @Before("pt()")
  public void before() {
    log.info("before ...2");
  }

  @After("pt()")
  public void after() {
    log.info("after ...2");
  }

}
